package com.lzk.system.domain;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.lzk.basic.domain.BaseDomain;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class Role extends BaseDomain {
    //名称
    private String name;
    //角色编码
    private String sn;
    //接收前端传来的菜单ID
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<Long> menus = new ArrayList<>();
    //接收前端传来的权限ID
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<Long> permissions = new ArrayList<>();
}
